#include <iostream>
#include <string>
#include <vector>
int main(int argc, char **argv)
{
	std::vector<std::string> v;
	v.push_back("test1");
	v.push_back("test2");
	v.push_back("test3");
	v.push_back("test4");	
	std::cout << "v size= " << v.size() << std::endl;
	std::vector<std::string>::iterator i = v.begin();
	while(i != v.end()) {
		if ( (*i).compare("test2") == 0) {
			i = v.erase( i );
			continue;
		}
		++i;
	}
	std::cout << "v size= " << v.size() << std::endl;
	return 0;
}
